from typing import Optional
from pydantic import BaseModel

class QWPathParams(BaseModel):
    msg_signature: str
    timestamp: str
    nonce: str
class QWEventMessage(BaseModel):
    msg_id: str
    external_userid: str
    event_type:str
    create_time: int
    origin:int
    msgtype: str
    open_kfid: str
    scene:Optional[str]
    scene_param: Optional[str]
    welcome_code: Optional[str]
class QWTextMessage(BaseModel):
    msg_type: str
    content: str
    create_time: int
    msg_id: str
    external_userid: str
    origin:int
    open_kfid: str